package org.example;

import org.example.config.AppConfig;
import org.example.task.TimePrintTask;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import java.util.concurrent.ThreadPoolExecutor;

public class App {
    public static void main(String[] args) {
    
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);

 
        ThreadPoolExecutor executor = context.getBean(ThreadPoolExecutor.class);
        TimePrintTask task = context.getBean(TimePrintTask.class);

        executor.submit(task);

    }
}